package com.jindy.module.statement.service.impl;

import java.util.List;

import com.jindy.module.statement.mapper.DeductibleExpensesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jindy.module.statement.mapper.DeductibleExpensesMapper;
import com.jindy.module.statement.domain.DeductibleExpenses;
import com.jindy.module.statement.service.IDeductibleExpensesService;

/**
 * 项目应扣费用Service业务层处理
 *
 * @author ruoyi
 * @date 2022-10-27
 */
@Service
public class DeductibleExpensesServiceImpl implements IDeductibleExpensesService
{
    @Autowired
    private DeductibleExpensesMapper deductibleExpensesMapper;

    /**
     * 查询项目应扣费用
     *
     * @param id 项目应扣费用主键
     * @return 项目应扣费用
     */
    @Override
    public DeductibleExpenses selectDeductibleExpensesById(Long id)
    {
        return deductibleExpensesMapper.selectDeductibleExpensesById(id);
    }

    /**
     * 查询项目应扣费用列表
     *
     * @param deductibleExpenses 项目应扣费用
     * @return 项目应扣费用
     */
    @Override
    public List<DeductibleExpenses> selectDeductibleExpensesList(DeductibleExpenses deductibleExpenses)
    {
        return deductibleExpensesMapper.selectDeductibleExpensesList(deductibleExpenses);
    }

    /**
     * 新增项目应扣费用
     *
     * @param deductibleExpenses 项目应扣费用
     * @return 结果
     */
    @Override
    public int insertDeductibleExpenses(DeductibleExpenses deductibleExpenses)
    {
        return deductibleExpensesMapper.insertDeductibleExpenses(deductibleExpenses);
    }

    /**
     * 修改项目应扣费用
     *
     * @param deductibleExpenses 项目应扣费用
     * @return 结果
     */
    @Override
    public int updateDeductibleExpenses(DeductibleExpenses deductibleExpenses)
    {
        return deductibleExpensesMapper.updateDeductibleExpenses(deductibleExpenses);
    }

    /**
     * 批量删除项目应扣费用
     *
     * @param ids 需要删除的项目应扣费用主键
     * @return 结果
     */
    @Override
    public int deleteDeductibleExpensesByIds(Long[] ids)
    {
        return deductibleExpensesMapper.deleteDeductibleExpensesByIds(ids);
    }

    /**
     * 删除项目应扣费用信息
     *
     * @param id 项目应扣费用主键
     * @return 结果
     */
    @Override
    public int deleteDeductibleExpensesById(Long id)
    {
        return deductibleExpensesMapper.deleteDeductibleExpensesById(id);
    }
}
